package lab02.test37;

/**
 * Created by ASUS on 2017/11/20.
 */
public class StudentDemo {
    public static void main(String[] args) {
        Undergraduate u = new Undergraduate(67,98,32);
        System.out.println(u.Ifgraduate());

        Graduate g = new Graduate(89,78,89);
        System.out.println(g.Ifgraduate());
    }
}
class Student {
    private double chinese;
    private double math;
    private double computer;

    public double Ifgraduate(){
        return 0;
    }
    Student(){}
    Student(double chinese,double math,double computer){
        this.chinese = chinese;
        this.math = math;
        this.computer = computer;
    }
    public double getChinese() {
        return chinese;
    }
    public void setChinese(double chinese) {
        this.chinese = chinese;
    }
    public double getMath() {
        return math;
    }
    public void setMath(double math) {
        this.math = math;
    }
    public double getComputer() {
        return computer;
    }
    public void setComputer(double computer) {
        this.computer = computer;
    }
}
